package classes.file.format;

import java.util.regex.Pattern;

public class TestRegx {
  public static void main(String[] args) {
    String loginNameRegex = "^[a-zA-Z0-9@\\-_\\.]+$";
    Pattern loginPattern = Pattern.compile(loginNameRegex);
    
    String str1 = "aabccdd322";
    String str2 = "Thing@123";
    String str3 = "11;222";
    String str4 = "11@-_.bb";
    
    
    System.out.println(loginPattern.matcher(str1).matches());
    System.out.println(loginPattern.matcher(str2).matches());
    System.out.println(loginPattern.matcher(str3).matches());
    System.out.println(loginPattern.matcher(str4).matches());
  }
}
